EM_LIMITTEXT This message is sent to an edit control in order to limit the number of characters which can be inserted into the control. Parameters wParam contains the maximum number of characters which the edit control should handle. lParam is not used.